package com.dream.service.user.domain.model;

import java.io.Serializable;

/**
 * Created by kangd on 2016/3/24.
 */
public class UserModel implements Serializable{

    private Integer user_id; //用户自增id

    private String pin; //pin

    private String nickname; //昵称

    private String icon; //头像

    private Integer user_type; //用户类型

    private Integer user_level; //用户等级

    private Integer status_code; //状态码

    private String create_time; //创建时间

    private String update_time; //更新时间

    private Integer login_type; //登录类型，具体到哪个平台

    private String login_email; //登录邮箱

    private String pwd; //密码

    private UserReturnInfoModel return_info; //返回信息，用于第三方登录

    private  Integer user_score; //用户评分

    private Integer isHistoricalUser; //是否是历史用户

    /**
     * 邀请人的pin，表示自己是被谁邀请的
     */
    private String invite_pin;

    /**
     * 注册来源
     */
    private String source;

    private int netred;

    /**
     *  临时增加这个字段吧
     */
    private String last_order_time;

    private String country;

    private String country_name;

    private String city;

    private String cityName;

    private String telephone;

    /**
     * 下面字段为临时统计字段，先暂时直接返回吧
     */
    private Integer totalOrder;

    private Integer paidOrder;

    private Double purchaseAmount;

    private String address;

    public UserModel(){}

    public UserModel(String pin, String nickname, String icon, String login_email, String pwd,Integer login_type) {
        this.pin = pin;
        this.nickname = nickname;
        this.icon = icon;
        this.login_email = login_email;
        this.pwd = pwd;
        this.login_type = login_type;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getPin() {
        return pin;
    }

    public void setPin(String pin) {
        this.pin = pin;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getUser_type() {
        return user_type;
    }

    public void setUser_type(Integer user_type) {
        this.user_type = user_type;
    }

    public Integer getUser_level() {
        return user_level;
    }

    public void setUser_level(Integer user_level) {
        this.user_level = user_level;
    }

    public Integer getStatus_code() {
        return status_code;
    }

    public void setStatus_code(Integer status_code) {
        this.status_code = status_code;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public Integer getLogin_type() {
        return login_type;
    }

    public void setLogin_type(Integer login_type) {
        this.login_type = login_type;
    }

    public String getLogin_email() {
        return login_email;
    }

    public void setLogin_email(String login_email) {
        this.login_email = login_email;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public UserReturnInfoModel getReturn_info() {
        return return_info;
    }

    public void setReturn_info(UserReturnInfoModel return_info) {
        this.return_info = return_info;
    }

    public Integer getUser_score() {
        return user_score;
    }

    public void setUser_score(Integer user_score) {
        this.user_score = user_score;
    }

    public Integer getIsHistoricalUser() {
        return isHistoricalUser;
    }

    public void setIsHistoricalUser(Integer isHistoricalUser) {
        this.isHistoricalUser = isHistoricalUser;
    }

    public String getInvite_pin() {
        return invite_pin;
    }

    public void setInvite_pin(String invite_pin) {
        this.invite_pin = invite_pin;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public int getNetred() {
        return netred;
    }

    public void setNetred(int netred) {
        this.netred = netred;
    }

    public String getLast_order_time() {
        return last_order_time;
    }

    public void setLast_order_time(String last_order_time) {
        this.last_order_time = last_order_time;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCountry_name() {
        return country_name;
    }

    public void setCountry_name(String country_name) {
        this.country_name = country_name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getTotalOrder() {
        return totalOrder;
    }

    public void setTotalOrder(Integer totalOrder) {
        this.totalOrder = totalOrder;
    }

    public Integer getPaidOrder() {
        return paidOrder;
    }

    public void setPaidOrder(Integer paidOrder) {
        this.paidOrder = paidOrder;
    }

    public Double getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(Double purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
